import { request } from '@/utils/http';

export const queryShopping = (params?: any): any => {
  return request.get<any>('/app/shopping/query', params);
};

export const addShopping = (params: any): any => {
  return request.post<any>('/app/shopping/add', params);
};

export const deleteShopping = (data: any): any => {
  return request.post<any>('/app/shopping/delete', data, {
    headers: { 'Content-Type': 'application/json' },
  });
};

export const sendSubscribeToB = (params: any): any => {
  return request.post('/weixin/sendMessage', params);
};

export const addOrder = (params: any): any => {
  return request.post('/app/order/add', params);
};
